package com.aiyige.model.moment.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 保障
 * Created by xiachao on 2018/1/24.
 */

public class Guarantee implements Parcelable {
    /**
     *保障ID
     */
    private String id;

    /**
     *  保障名称
     */
    private String name;

    /**
     * 保障内容
     */
    private String detail;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.detail);
    }

    public Guarantee() {
    }

    protected Guarantee(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.detail = in.readString();
    }

    public static final Creator<Guarantee> CREATOR = new Creator<Guarantee>() {
        @Override
        public Guarantee createFromParcel(Parcel source) {
            return new Guarantee(source);
        }

        @Override
        public Guarantee[] newArray(int size) {
            return new Guarantee[size];
        }
    };
}
